Use the keyword to create the cipher alphabet
Convert the letters in your text to their replacements
from the cipher alphabet
Get a keyword, the text to be encrypted,
and whether to encrypt or decrypt
Output the transformed text
The Keyword Cipher Algorithm
How To Create The Cipher Alphabet
G
D
E
F
A
B
C
G
D
E
F
A
B
C
G
D
E
F
A
B
C
BEEF
BEF
1. Start with a copy of the regular alphabet
2. Get a keyword
3. Remove duplicate letters from the keyword
4. Remove the keyword letters from the regular alphabet
5. Put the keyword letters at the beginning of the
cipher alphabet, and append the remaining letters from the
regular alphabet to the end of the cipher alphabet
How To Encrypt The Text
1. Find the regular alphabet location
of each character in your text
2. Replace that character with the cipher
alphabet character from the same location
To decrypt you simply swap the regular and cipher alphabets and run the same process
FADED BADGE
DBACA EBAGC
G
D
E
F
A
B
C
G
D
E
F
A
B
C
FADED BADGE
DBACA EBAGC
G
D
E
F
A
B
C
G
D
E
F
A
B
C
1